<?php

/**
 *  @FileComment            [前台订单模型]
 *  @ProjectName             项目名称：shopFrame
 *  @FileName                   文件名称：OrderModel.class.php
 *  @Author                       yuerengui <596580041@qq.com>
 *  @Date                          2014-10-19 17:11:24
 *  *
 */
class OrderModel extends Model {

        public $table = 'orderinfo';

        public function add_data($data) {
                return $this->add($data);
        }

        public function get_data() {
                return $this->all();
        }

        public function get_user_oid($uid) {
                return $this->where(array('user_uid' => $uid))->getField('oid', true);
        }

}
